<?php
/**
 * 修改CI 系统级错误
 */
defined('BASEPATH') OR exit('No direct script access allowed');
function _error_handler($severity, $message, $filepath, $line)
{
	if (($severity & error_reporting()) !== $severity)
	{
		return;
	}

	if (str_ireplace(array('off', 'none', 'no', 'false', 'null'), '', ini_get('display_errors')))
	{
		set_status_header(500);
		exit("severity: {$severity} \r\n message: {$message} \r\n filepath: {$filepath} \r\n line: {$line}");
	}

	exit('');
}
